/* 传统CSS样式，用于替换Tailwind CSS */

/* 基础样式 */
.admin-container, .client-container, .staff-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9fafb;
}

/* 头部导航栏样式 */
.header {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.logout-btn {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  border: none;
  background: none;
  cursor: pointer;
}

.logout-btn:hover {
  color: #374151;
}

/* 侧边栏样式 */
.sidebar {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  width: 16rem;
  flex-shrink: 0;
  display: block;
  z-index: 20;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.sidebar-nav {
  padding: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #4b5563;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.nav-item.active {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-weight: 500;
}

.nav-icon {
  width: 1.5rem;
  text-align: center;
}

.nav-text {
  margin-left: 0.75rem;
}

/* 主内容区域样式 */
.main-content {
  flex: 1;
  overflow-y: auto;
  background-color: #f9fafb;
  padding: 1rem;
}

/* 统计卡片样式 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}

.stat-content {
  padding: 1.25rem;
}

.stat-header {
  display: flex;
  align-items: center;
}

.stat-icon-container {
  flex-shrink: 0;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.stat-icon-container.blue {
  background-color: #dbeafe;
}

.stat-icon-container.green {
  background-color: #dcfce7;
}

.stat-icon-container.yellow {
  background-color: #fef9c3;
}

.stat-icon-container.red {
  background-color: #fee2e2;
}

.stat-icon {
  font-size: 1.25rem;
}

.stat-icon.blue {
  color: #2563eb;
}

.stat-icon.green {
  color: #16a34a;
}

.stat-icon.yellow {
  color: #ca8a04;
}

.stat-icon.red {
  color: #dc2626;
}

.stat-text {
  margin-left: 1rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

/* 响应式设计 */
@media (min-width: 768px) {
  .main-content {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .main-content {
    padding: 1.5rem 2rem;
  }
}